tooltip: Never set a window to be its own parent
authorMatthias Clasen <mclasen@redhat.com>
Mon, 30 Dec 2019 14:52:13 +0000 (09:52 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 30 Dec 2019 14:52:13 +0000 (09:52 -0500)
commit772ac2b0c587b9bd0927d339550341a547b70057
tree388abbc03e9371b94511968fedbd3186759379aa
parent68b3b66c03804b15b8ed80970abfa7f3b3bff0d6
tooltip: Never set a window to be its own parent

We do get events on the tooltip window too, and
we better ignore them, or bad things may happen,
such as widgets that are their own parents and
cause infinite loops.

Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/2339
gtk/gtktooltip.c
gtk/gtktooltipwindow.c